home *** CD-ROM | disk | FTP | other *** search
/ HAM Radio 1997 / HAM Radio 1997.iso / vcls / slider1 / slider.doc < prev    next >
Text File  |  1996-04-08  |  2KB  |  64 lines

  1. TSlider Component
  2. -----------------
  3.  
  4. This component is FreeWare.  It has been put into the public domain with the following conditions:
  5.  
  6.   1.  The component and source must not be sold without the author's permission.
  7.   2.  The modified source must not be published without the author's permission.
  8.  
  9. By Colin Wilson - woozle@cix.compulink.co.uk
  10.  
  11.  
  12. The TSlider object is a representation of a Slider - as used in mixers, lighting
  13. control units, etc.
  14.  
  15. It defines the following new public properties:
  16.  
  17.     property TrackWidth : Integer
  18.  
  19.       The width of the slider track.
  20.  
  21.     property TrackColor : TColor
  22.  
  23.       The slider track color.
  24.  
  25.     property ThumbHeight : Integer
  26.  
  27.       The height of the Thumb (the bit that slides).  The thumb is always as
  28.       wide as the component - so can be controlled by the Width property.
  29.  
  30.     property ThumbColor : TColor
  31.  
  32.       The thumb colour.
  33.  
  34.     property Orientation : TSliderOrientation
  35.  
  36.       slHorizontal or slVertical.  Controls whether the slider slider left/right
  37.       or up/down.
  38.  
  39.     property Minimum : Integer
  40.  
  41.       The minimum slider value.
  42.  
  43.     property Maximum : Integer
  44.  
  45.       The maximum slider value.
  46.  
  47.     property Value : Integer
  48.  
  49.       The current slider value.
  50.  
  51. The following new protected procedure is defined:
  52.  
  53.   procedure DrawThumb; virtual;
  54.  
  55.     Can be overriden to draw custom thumbs or thumbs with legends, bitmaps, etc.
  56.  
  57. The following new event is defined:
  58.  
  59.   property OnValueChange : TNotifyEvent;
  60.  
  61.     Called whenever the value changes
  62.  
  63.  
  64.